package remote.controllers;

import remote.activities.ConnectionActivity;
import remote.activities.DashboardActivity;
import remote.activities.MediaControllerActivity;
import remote.activities.SystemActivity;
import remote.activities.R;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class DashboardController extends BaseController implements OnClickListener
{
	public DashboardController(DashboardActivity activity)
	{
		super(activity);
	}

	@Override
	public void onClick(View v)
	{
		switch(v.getId())
		{
			case R.id.dashboard_btnConnection :
				_activity.startActivity(new Intent(v.getContext(), ConnectionActivity.class));
				break;
			case R.id.dashboard_btnWMP :
				_activity.startActivity(new Intent(v.getContext(), MediaControllerActivity.class));
				break;
			case R.id.dashboard_btnSystem :
				_activity.startActivity(new Intent(v.getContext(), SystemActivity.class));
				break;
		}
	}
}
